<?php echo form_tag('@admin?module=tag&action=edit', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

<?php echo object_input_hidden_tag($tag, 'getId') ?>

<fieldset id="sf_fieldset_none" class="">

<div class="form-row">
  <?php echo label_for('tag[handle]', __($labels['tag{handle}']), 'class="required" ') ?>
  <div class="content<?php if ($sf_request->hasError('tag{handle}')): ?> form-error<?php endif; ?>">
  <?php if ($sf_request->hasError('tag{handle}')): ?>
    <?php echo form_error('tag{handle}', array('class' => 'form-error-msg')) ?>
  <?php endif; ?>

  <?php $value = object_input_tag($tag, 'getHandle', array (
  'size' => 80,
  'control_name' => 'tag[handle]',
)); echo $value ? $value : '&nbsp;' ?>
    </div>
</div>

<div class="form-row">
  <?php echo label_for('tag[i18n]', __($labels['tag{i18n}']), '') ?>
  <div class="content<?php if ($sf_request->hasError('tag{i18n}')): ?> form-error<?php endif; ?>">
  <?php if ($sf_request->hasError('tag{i18n}')): ?>
    <?php echo form_error('tag{i18n}', array('class' => 'form-error-msg')) ?>
  <?php endif; ?>

  <?php include_partial('i18n', array('type' => 'edit', 'tag' => $tag, 'languages' => $languages)); ?>
    </div>
</div>

</fieldset>

<?php include_partial('edit_actions', array('tag' => $tag)) ?>

</form>

<ul class="sf_admin_actions">
      <li class="float-left"><?php if ($tag->getId()): ?>
<?php echo button_to(__('delete'), '@admin?module=tag&action=delete&id='.$tag->getId(), array (
  'post' => true,
  'confirm' => __('Are you sure?'),
  'class' => 'sf_admin_action_delete',
)) ?><?php endif; ?>
</li>
  </ul>
